package org.emp.exception;

/**
 * 加油
 *
 * @author konglingfeng
 * @date 2025/8/9
 * @desc
 */

public class LoginException extends RuntimeException{

    // 错误码：用于区分不同的业务异常场景
    private final Integer errorCode;

    public LoginException(Integer errorCode, String msg) {
        super(msg);
        this.errorCode = errorCode;
    }

    // getter
    public Integer getErrorCode() {
        return errorCode;
    }
}
